地図:福島県

説明

指定した座標に福島県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,0,29,63,63,127);
uart(n,14,3,x+16,y,c,3,3,3,3,1,3,255,255);
uart(n,14,3,x+24,y,c,128,192,252,254,254,255,255,255);
uart(n,14,3,x+32,y,c,0,0,48,48,184,248,248,252);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,0,7,15,127,127);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,252,252,252,252,252,252,252,252);
y=y+8;
uart(n,14,3,x,y,c,127,127,127,255,127,63,63,63);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,248,240);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,15,7);
uart(n,14,3,x+24,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,252,252,248,248,248,248,248,248);
y=y+8;
uart(n,14,3,x,y,c,63,63,60,8,0,0,0,0);
uart(n,14,3,x+8,y,c,192,0,0,0,0,0,0,0);
uart(n,14,3,x+16,y,c,7,3,3,1,0,0,0,0);
uart(n,14,3,x+24,y,c,255,255,255,255,249,96,0,0);
uart(n,14,3,x+32,y,c,248,248,240,192,128,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る